service:service.c
	gcc service.c -std=gnu99 -o service -lsqlite3

.PHONY:cgi
cgi:
	gcc /var/www/cgi-bin/hb_cgi.c -o /var/www/cgi-bin/HB_CGI.cgi -lsqlite3

.PHONY:cgi_v
cgi_v:
	vim /var/www/cgi-bin/hb_cgi.c

.PHONY:cgiopen_v
cgiopen_v:
	vim /var/www/cgi-bin/hb_cgi_open.c

.PHONY:cgiopen
cgiopen:
	gcc /var/www/cgi-bin/hb_cgi_open.c -o /var/www/cgi-bin/HB_CGI_open.cgi -lsqlite3

.PHONY:cgiclose
cgiclose:
	gcc /var/www/cgi-bin/hb_cgi_close.c -o /var/www/cgi-bin/HB_CGI_close.cgi -lsqlite3

.PHONY:cgiclose_v
cgiclose_v:
	vim /var/www/cgi-bin/hb_cgi_close.c

.PHONY:clean
clean:
	rm -r service

.PHYON:search
search:
	ls /var/www/cgi-bin/ | grep "hb"
